package gui.empleado;

import java.awt.Frame;
import java.awt.BorderLayout;

import javax.swing.JDialog;

public class DialogoAgregarEmpleado extends JDialog {

	private static final long serialVersionUID = 1L;
	private PanelAgregarEmpleado panelAgregarEmpleado = null;
	private static DialogoAgregarEmpleado instancia = null;

	public static DialogoAgregarEmpleado getInstancia() {
		if (instancia == null) {
			instancia = new DialogoAgregarEmpleado(null,
					"Panel Agregar Empleado");
		}
		return instancia;
	}

	/**
	 * @param owner
	 */
	private DialogoAgregarEmpleado(Frame owner, String titulo) {
		super(owner);
		this.setModal(true);
		initialize();
	}

	/**
	 * This method initializes this
	 * 
	 * @return void
	 */
	private void initialize() {
		this.setResizable(false);
		this.setLocationRelativeTo(null);
		this.setSize(432, 670);
		this.setContentPane(getPanelAgregarEmpleado());
		this.setResizable(false);
		this.setLocationRelativeTo(null);
	}

	/**
	 * This method initializes jContentPane
	 * 
	 * @return javax.swing.JPanel
	 */
	private PanelAgregarEmpleado getPanelAgregarEmpleado() {
		if (panelAgregarEmpleado == null) {
			panelAgregarEmpleado = new PanelAgregarEmpleado();
			panelAgregarEmpleado.setLayout(new BorderLayout());
		}
		return panelAgregarEmpleado;
	}

} // @jve:decl-index=0:visual-constraint="10,10"
